#ifndef _FLASH_APP_H_
#define _FLASH_APP_H_

#include "main.h"

#pragma pack(1)

struct flash_adaptor_parm_part {
    unsigned char               bcp;
    struct adaptor_parm_summary ada_parm;
};

union flash_adaptor_parm_all {
    unsigned short                 all[sizeof(struct flash_adaptor_parm_part) / 2 + 1];
    struct flash_adaptor_parm_part part;
};

#pragma pack()

#define ADA_PARM_ADDR (0x0807f800)

void get_adaptor_parm(void);
void write_flash_adaptor_parm(void);
void update_flash_ada_parm(void);

extern union flash_adaptor_parm_all flash_adaptor_parm;

#endif
